﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework.Bus
{
    public interface IBus<in TMessage> : IDisposable
    {
        void Commit();
        void Send(TMessage message);
        void Send(IEnumerable<TMessage> messages);
        void Publish(TMessage message);
        void Publish(IEnumerable<TMessage> messages);
    }
}
